#include "ParticleAdhesive.h"

#include "ParticleContext.h"
#include "DescriptorParticle.h"

using namespace ParticleEngine; 

const DescriptorParticle ParticleAdhesive::Descriptor
(
	"Adhesive", 
	[](ParticleContext& NewContext){ return new ParticleAdhesive(NewContext); }
); 

ParticleAdhesive::ParticleAdhesive(ParticleContext& NewContext) :
	ParticleBase(NewContext, &ParticleAdhesive::Descriptor)
{
	Adhesions = new PropertyAdhesions(0.1f);
	Adhesions->ParticleCast = this;
	//this->Adhesions = dynamic_cast<PropertyAdhesions*>(this);
	//this->Adhesions->ParticleCast = dynamic_cast<ParticleBase*>(this);
}
ParticleAdhesive::~ParticleAdhesive(void)
{
}

ColorRGBA<unsigned char> ParticleAdhesive::GetColor()
{
	return ColorRGBA<unsigned char> (128, 	128,	64,	255);
}

